@extends('layouts.admin')

@section('admin-content')
    @if (count($errors) > 0)
        <div class="alert alert-danger">
            <ul>
                @foreach ($errors->all() as $error)
                    <li>{{ $error }}</li>
                @endforeach
            </ul>
        </div>
    @endif
    <div class="box">
        <form id="login-form" action="{{url('task')}}" method="post">
            <div class="form-group field-title required has-success">
                <label class="text-right" for="title">{{ trans("labels.task.title") }}:</label>
                <input type="text" id="title" class="form-control" name="title" value="{{ old("title") }}">
                <div class="help-block"></div>
            </div>
            <div class="clearfix"></div>
            <div class="box-footer">
                {{ csrf_field() }}
                <input type="hidden" name="project_id" value="{{ $pid }}"/>
                <input type="submit" class="btn btn-primary" value="提交">
            </div>
        </form>
    </div>
@endsection